﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CalendarAndDataControlsTest.aspx.cs" Inherits="CalendarTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;</div>
        &nbsp;&nbsp;
        <asp:Calendar ID="Calendar3" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
            BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt"
            ForeColor="#663399" Height="200px" ShowGridLines="True" Width="220px">
            <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
            <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
            <SelectorStyle BackColor="#FFCC66" />
            <OtherMonthDayStyle ForeColor="#CC9966" />
            <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
            <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
            <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" ForeColor="#FFFFCC" />
        </asp:Calendar>
        &nbsp;
        <asp:Calendar ID="Calendar8" runat="server" BackColor="White" BorderColor="#3366CC"
            BorderWidth="1px" CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana"
            Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
            <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
            <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
            <WeekendDayStyle BackColor="#CCCCFF" />
            <OtherMonthDayStyle ForeColor="#999999" />
            <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
            <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
            <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
        </asp:Calendar>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:onlineexamConnectionString %>" SelectCommand="SELECT * FROM [t_student]"></asp:SqlDataSource>
        <asp:FormView ID="FormView1" runat="server" AllowPaging="True" CellPadding="4" DataKeyNames="id"
            DataSourceID="SqlDataSource1" ForeColor="#333333">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#7C6F57" />
            <EditItemTemplate>
                id:
                <asp:Label ID="idLabel1" runat="server" Text='<%# Eval("id") %>'></asp:Label><br />
                stuId:
                <asp:TextBox ID="stuIdTextBox" runat="server" Text='<%# Bind("stuId") %>'>
                </asp:TextBox><br />
                name:
                <asp:TextBox ID="nameTextBox" runat="server" Text='<%# Bind("name") %>'>
                </asp:TextBox><br />
                password:
                <asp:TextBox ID="passwordTextBox" runat="server" Text='<%# Bind("password") %>'>
                </asp:TextBox><br />
                classIn:
                <asp:TextBox ID="classInTextBox" runat="server" Text='<%# Bind("classIn") %>'>
                </asp:TextBox><br />
                sex:
                <asp:TextBox ID="sexTextBox" runat="server" Text='<%# Bind("sex") %>'>
                </asp:TextBox><br />
                age:
                <asp:TextBox ID="ageTextBox" runat="server" Text='<%# Bind("age") %>'>
                </asp:TextBox><br />
                scurityNo:
                <asp:TextBox ID="scurityNoTextBox" runat="server" Text='<%# Bind("scurityNo") %>'>
                </asp:TextBox><br />
                email:
                <asp:TextBox ID="emailTextBox" runat="server" Text='<%# Bind("email") %>'>
                </asp:TextBox><br />
                phone:
                <asp:TextBox ID="phoneTextBox" runat="server" Text='<%# Bind("phone") %>'>
                </asp:TextBox><br />
                registerDate:
                <asp:TextBox ID="registerDateTextBox" runat="server" Text='<%# Bind("registerDate") %>'>
                </asp:TextBox><br />
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                    Text="更新">
                </asp:LinkButton>
                <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="取消">
                </asp:LinkButton>
            </EditItemTemplate>
            <RowStyle BackColor="#E3EAEB" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <InsertItemTemplate>
                id:
                <asp:TextBox ID="idTextBox" runat="server" Text='<%# Bind("id") %>'>
                </asp:TextBox><br />
                stuId:
                <asp:TextBox ID="stuIdTextBox" runat="server" Text='<%# Bind("stuId") %>'>
                </asp:TextBox><br />
                name:
                <asp:TextBox ID="nameTextBox" runat="server" Text='<%# Bind("name") %>'>
                </asp:TextBox><br />
                password:
                <asp:TextBox ID="passwordTextBox" runat="server" Text='<%# Bind("password") %>'>
                </asp:TextBox><br />
                classIn:
                <asp:TextBox ID="classInTextBox" runat="server" Text='<%# Bind("classIn") %>'>
                </asp:TextBox><br />
                sex:
                <asp:TextBox ID="sexTextBox" runat="server" Text='<%# Bind("sex") %>'>
                </asp:TextBox><br />
                age:
                <asp:TextBox ID="ageTextBox" runat="server" Text='<%# Bind("age") %>'>
                </asp:TextBox><br />
                scurityNo:
                <asp:TextBox ID="scurityNoTextBox" runat="server" Text='<%# Bind("scurityNo") %>'>
                </asp:TextBox><br />
                email:
                <asp:TextBox ID="emailTextBox" runat="server" Text='<%# Bind("email") %>'>
                </asp:TextBox><br />
                phone:
                <asp:TextBox ID="phoneTextBox" runat="server" Text='<%# Bind("phone") %>'>
                </asp:TextBox><br />
                registerDate:
                <asp:TextBox ID="registerDateTextBox" runat="server" Text='<%# Bind("registerDate") %>'>
                </asp:TextBox><br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                    Text="插入">
                </asp:LinkButton>
                <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="取消">
                </asp:LinkButton>
            </InsertItemTemplate>
            <ItemTemplate>
                id:
                <asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>'></asp:Label><br />
                stuId:
                <asp:Label ID="stuIdLabel" runat="server" Text='<%# Bind("stuId") %>'></asp:Label><br />
                name:
                <asp:Label ID="nameLabel" runat="server" Text='<%# Bind("name") %>'></asp:Label><br />
                password:
                <asp:Label ID="passwordLabel" runat="server" Text='<%# Bind("password") %>'></asp:Label><br />
                classIn:
                <asp:Label ID="classInLabel" runat="server" Text='<%# Bind("classIn") %>'></asp:Label><br />
                sex:
                <asp:Label ID="sexLabel" runat="server" Text='<%# Bind("sex") %>'></asp:Label><br />
                age:
                <asp:Label ID="ageLabel" runat="server" Text='<%# Bind("age") %>'></asp:Label><br />
                scurityNo:
                <asp:Label ID="scurityNoLabel" runat="server" Text='<%# Bind("scurityNo") %>'></asp:Label><br />
                email:
                <asp:Label ID="emailLabel" runat="server" Text='<%# Bind("email") %>'></asp:Label><br />
                phone:
                <asp:Label ID="phoneLabel" runat="server" Text='<%# Bind("phone") %>'></asp:Label><br />
                registerDate:
                <asp:Label ID="registerDateLabel" runat="server" Text='<%# Bind("registerDate") %>'>
                </asp:Label><br />
            </ItemTemplate>
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        </asp:FormView>
        <asp:DataList ID="DataList1" runat="server" CellPadding="4" DataKeyField="id" DataSourceID="SqlDataSource1"
            ForeColor="#333333">
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <ItemTemplate>
                id:
                <asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>'></asp:Label><br />
                stuId:
                <asp:Label ID="stuIdLabel" runat="server" Text='<%# Eval("stuId") %>'></asp:Label><br />
                name:
                <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>'></asp:Label><br />
                password:
                <asp:Label ID="passwordLabel" runat="server" Text='<%# Eval("password") %>'></asp:Label><br />
                classIn:
                <asp:Label ID="classInLabel" runat="server" Text='<%# Eval("classIn") %>'></asp:Label><br />
                sex:
                <asp:Label ID="sexLabel" runat="server" Text='<%# Eval("sex") %>'></asp:Label><br />
                age:
                <asp:Label ID="ageLabel" runat="server" Text='<%# Eval("age") %>'></asp:Label><br />
                scurityNo:
                <asp:Label ID="scurityNoLabel" runat="server" Text='<%# Eval("scurityNo") %>'></asp:Label><br />
                email:
                <asp:Label ID="emailLabel" runat="server" Text='<%# Eval("email") %>'></asp:Label><br />
                phone:
                <asp:Label ID="phoneLabel" runat="server" Text='<%# Eval("phone") %>'></asp:Label><br />
                registerDate:
                <asp:Label ID="registerDateLabel" runat="server" Text='<%# Eval("registerDate") %>'></asp:Label><br />
                <br />
            </ItemTemplate>
            <AlternatingItemStyle BackColor="White" />
            <ItemStyle BackColor="#E3EAEB" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        </asp:DataList>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False"  CellPadding="4" DataKeyNames="id" DataSourceID="SqlDataSource1"
            ForeColor="#333333" GridLines="None">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" />
                <asp:BoundField DataField="stuId" HeaderText="stuId" SortExpression="stuId" />
                <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
                <asp:BoundField DataField="password" HeaderText="password" SortExpression="password" />
                <asp:BoundField DataField="classIn" HeaderText="classIn" SortExpression="classIn" />
                <asp:BoundField DataField="sex" HeaderText="sex" SortExpression="sex" />
                <asp:BoundField DataField="age" HeaderText="age" SortExpression="age" />
                <asp:BoundField DataField="scurityNo" HeaderText="scurityNo" SortExpression="scurityNo" />
                <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
                <asp:BoundField DataField="phone" HeaderText="phone" SortExpression="phone" />
                <asp:BoundField DataField="registerDate" HeaderText="registerDate" SortExpression="registerDate" />
            </Columns>
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        &nbsp;&nbsp;
    </form>
</body>
</html>
